extern long arrcpy(long, long*, long*, long);
int test() {
	int r = 1337;
	#define LENGTH 8
	long src[LENGTH] = {1,4,16,64,256,13,42,7};
	long dst[LENGTH] = {0,0,0,0,0,0,0,0};
	long expected = r+LENGTH;
	long result = arrcpy(r,src,dst,LENGTH);
	if (result!=expected) {
		return 0;
	}
	int i;
	for (i=0; i<LENGTH; i++) {
		if (dst[i]!=src[i]*r) {
			return 0;
		}
	}
	return 1;
}

RET(test()==1);
